<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>${properties.projectName}-${properties.sampleName}-${className}-edit</title>
</head> 
<body>
<a href='${properties.webRoot}/${properties.projectName?uncap_first}/${properties.sampleName}/index.jsp'>index</a>
<a href='javascript:document.${className?uncap_first}Form.submit();'>save</a>
<form name=${className?uncap_first}Form action='${properties.webRoot}/${properties.projectName?uncap_first}/controller/${className?uncap_first}Controller.do?method=save' method='post'>
<input type=hidden name=${pk?uncap_first} value='${r"${"}${className?uncap_first}.${pk?uncap_first}${r"}"}'>
<table>
<#list fields as fld>
<tr><td>${fld.className?uncap_first}:</td><td><input type=text name=${fld.className?uncap_first} value='${r"${"}${className?uncap_first}.${fld.className?uncap_first}${r"}"}'></td></tr>
</#list>
<#list importKey as impKey>
<tr>
	<td>${impKey.keyTableClassName}:</td>
	<td>
		<select name="${impKey.keyColumnClassName?uncap_first}">
		<c:forEach items="${r"${"}${impKey.keyTableClassName?uncap_first}List${r"}"}" var="${impKey.keyTableClassName?uncap_first}" >
		<option value="${r"${"}${impKey.keyTableClassName?uncap_first}.${impKey.keyColumnClassName?uncap_first}${r"}"}" <c:out value="${r"${"}${impKey.keyTableClassName?uncap_first}.${impKey.keyColumnClassName?uncap_first} eq ${className?uncap_first}.${impKey.keyTableClassName?uncap_first}.${impKey.keyColumnClassName?uncap_first}?'selected=selected':''}"/>>
		${r"${"}${impKey.keyTableClassName?uncap_first}.${impKey.keyColumnClassName?uncap_first}${r"}"}</option>
		</c:forEach> 
		</select>
	</td>
</tr>
</#list>
</table>
</form> 
</body>
</html>